Brazilian Inmates End Revolt After Deal With Prison Authorities